package cn.shop.cloud.controller;

import cn.shop.cloud.common.Result;
import cn.shop.cloud.domain.User;
import cn.shop.cloud.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: IntelliJ IDEA
 * @ClassName: TestController
 * @description:
 * @author: Song
 * @create: 2024-12-12 23 : 14
 * @version: 1.0
 **/
@RestController
public class TestController {
    @Autowired
    private UserService userService;


    @RequestMapping("/find")
    public User find(){
        User user = userService.find(18698789339L);
        return user;
    }

    @RequestMapping("/find1")
    public Result<User> find1(){
        User user = userService.find(18698789339L);
        return Result.success(user);
    }

}
